<?php
	FLEA::loadClass('FLEA_Db_TableDataGateway');
	class Model_Complex extends FLEA_Db_TableDataGateway
	{
		var $tableName = 'tb_complex';
		//var $primaryKey = 'style_id';
		var $hasMany = array(
			array(
				'tableClass' => 'Model_Albums',
				'foreignKey' => 'album_id',
				'mappingName' => 'albums',
			),
			array(
				'tableClass' => 'Model_Styles',
				'foreignKey' => 'style_id',
				'mappingName' => 'styles',
			),
		);
	}
?>